package com.wyx.service;

import com.wyx.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//BookService:底下需要去实现,调用dao层
public interface BookService {

    //增
    int addBook(Books book);

    //删
    int deleteBookById(int id);

    //改
    int updateBook(Books book);

    //查
    Books queryBookById(int id);

    //查
    List<Books> queryAllBook();

    Books queryBookByName(String bookName);
}
